import numpy as np
import matplotlib.pyplot as plt
if __name__=="__main__":
    
    phi_t = []
    with open("aaa") as file:
        while True:
            temp=file.readline()
            if not temp:
                break
            line =list(map(float,temp.split()))
            phi_t.append(line)

    fig=plt.figure(figsize= (7,5))

    plt.xlabel("$t/T$")
    plt.ylabel("$\phi /2\pi$")
    plt.imshow(phi_t,extent=(0, 1, 0, 1), aspect="auto", origin="lower")
    plt.colorbar()
    plt.savefig("res.jpg",bbox_inches='tight')
